
cc.Class({
    extends: cc.Component,

    properties: {

    },


    onLoad () {
        cc.director.getCollisionManager().enabled = true;
        // cc.director.getCollisionManager().enabledDebugDraw = true;
    },

    start () {

    },
    onCollisionEnter: function (other, self) {
        if(other.tag!=self.tag&&other.tag==10){
            console.log(self.tag);

        }
    },

    onCollisionStay: function (other, self) {

        // console.log('onCollisionStay');
    },

    onCollisionExit: function () {
        // console.log("onCollisionExit");
    },


    // update (dt) {},
});
